package cn.edu.tju.elm.service;

import cn.edu.tju.elm.model.WalletTransaction;
import cn.edu.tju.elm.model.TransactionType;

import java.math.BigDecimal;
import java.util.List;

/**
 * 钱包交易服务接口
 */
public interface WalletTransactionService {
    
    WalletTransaction getTransactionById(Long transactionId);
    
    WalletTransaction getTransactionByReferenceId(String referenceId);
    
    BigDecimal getTotalIncome(Long walletId);
    
    BigDecimal getTotalExpense(Long walletId);
    
    List<WalletTransaction> getTransactionsByType(Long walletId, TransactionType transactionType);
}